package com.easyapi.dao.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 权限表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "api_center_permission")
public class ApiCenterPermission implements Serializable {
    private static final long serialVersionUID = 6360081364616136528L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at")
    private Date createAt;

    /**
     * 最近修改时间
     */
    @TableField(value = "update_at")
    private Date updateAt;

    /**
     * 是否删除1--删除
     */
    @TableField(value = "is_deleted")
    private Integer isDeleted;

    /**
     * 权限CODE
     */
    @TableField(value = "code")
    private String code;

    /**
     * 权限名
     */
    @TableField(value = "`name`")
    private String name;

    /**
     * 展示名称
     */
    @TableField(value = "display")
    private String display;

    /**
     * 权限状态 0--可授权,1--禁止授权
     */
    @TableField(value = "status")
    private Integer status;
}